package org.listener.socket;

import org.mg.engine.core.Session;

/**
 * Create by bo.chen in 2018/10/12 22:46
 */
public class ApplicationHandler {

    private static volatile  ThreadLocal<Session> threadLocal = new ThreadLocal<>();

    public static void set(Session session) {
        threadLocal.set(session);
    }

    public static Session get() {
        return threadLocal.get();
    }

}
